// Package dao
// Date        : 2023/3/9 15:13
// Version     : 1.0.0
// Author      : 代码小学生王木木
// Email       : 18574945291@163.com
// Description :
package dao

import (
	"time"

	"github.com/dgrijalva/jwt-go"
	"gorm.io/gorm"
)

type BaseModel struct {
	ID        int64          `gorm:"primarykey;type bigint;comment:主键自增长ID" json:"id"`
	CreatedAt time.Time      `gorm:"column:create_at;comment:记录创建时间" json:"-"`
	UpdatedAt time.Time      `gorm:"column:update_at;comment:记录更新时间" json:"-"`
	DeletedAt gorm.DeletedAt `json:"-"`
}

var ModelList = []interface{}{
	&UserModel{},
	&MemberModel{},
}

// CustomClaims
// @Description: Jwt相关数据
type CustomClaims struct {
	ID          uint
	NickName    string
	UserName    string
	AuthorityId uint
	jwt.StandardClaims
}
